package com.openbravo.data.user;

import java.util.Comparator;

import com.openbravo.data.basic.BasicException;

import cn.ekuma.data.dao.I_DataLogic;
import cn.ekuma.data.dao.I_ParentNode;

public class ChildBrowsableDataModel extends BrowsableDataModel {
	protected I_ParentNode<String> parent;
	public ChildBrowsableDataModel(I_DataLogic dataLogic, Class cl,I_ParentNode<String> parent) {
		super(dataLogic, cl);
		this.parent=parent;
	}
	public ChildBrowsableDataModel(I_DataLogic dataLogic, Class cl,
			Comparator c, EditorCreator filterCreator,I_ParentNode<String> parent) {
		super(dataLogic, cl, c, filterCreator);
		this.parent=parent;
	}
	public ChildBrowsableDataModel(I_DataLogic dataLogic, Class cl, Comparator c,I_ParentNode<String> parent) {
		super(dataLogic, cl, c);
		this.parent=parent;
	}
	
	 public void refreshData() throws BasicException {
	       putNewData(dataLogic.listByParent(c,parent));
	}
	
	 
	 
}
